<template>

  <h2>营业时间配置</h2>

  <el-row>
    <el-col class="col-style"
            :span="7">
      <div class="big-box">

        <div class="min-box">
          当前营业时间：{{formLabelAlign.start}}~{{formLabelAlign.end}}</div>
        <div class="min-box">设置新的营业时间：</div>

        <el-form class="min-box"
                 label-width="100px"
                 :model="formLabelAlign"
                 style="max-width: 460px">
          <el-form-item label="开始时间:">
            <el-input class="input-w"
                      v-model="formLabelAlign.start" />
          </el-form-item>
          <el-form-item label="结束时间:">
            <el-input class="input-w"
                      v-model="formLabelAlign.end" />
          </el-form-item>

        </el-form>
        <el-button size="large"
                   class="set-btn"
                   type="primary"
                   @click="setTime">确认修改</el-button>
      </div>

    </el-col>
  </el-row>

</template>

<script setup>
import { reactive, ref } from 'vue'
const formLabelAlign = reactive({
  start: '8:00',
  end: '21:00',

})
const setTime = () => {
  console.log(formLabelAlign);
}
</script>

<style scoped>
.col-style {
  background-color: #f2f2f2;
}
.big-box {
  height: 300px;

  margin-bottom: -20px;
}
.set-btn {
  width: 360px;
}
.input-w {
  width: 100px;
}
.min-box {
  margin-top: 20px;
  margin-left: 20px;
}
</style>